package cm.cool.web.data;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import cm.cool.web.bean.Bill;

@Mapper
public interface BillMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Bill record);

    int insertSelective(Bill record);

    Bill selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Bill record);

    int updateByPrimaryKeyWithBLOBs(Bill record);

    int updateByPrimaryKey(Bill record);
    
    /**
     * 条件查询
     * @param bill
     * @return
     */
    List<Bill> findUserNameBill(Bill bill);
    
    /**
     * 获取记录数
     * @param bill
     * @return
     */
    int findUserNameBillCount(Bill bill);
}